<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="format-detection" content="telephone=no" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="white" />
		<title>钱包-详情</title>
		<link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css">
		<link rel="stylesheet" href="../public/css/jquery-weui.css">
		<link rel="stylesheet" href="../public/css/common.css" />
		<link rel="stylesheet" href="css/wallet-detail.css" />
		<script src="../public/js/jquery-2.1.4.js"></script>
		<script src="../public/js/font_size.js"></script>
		<script src="../public/js/template-web.js"></script>
		<script src="../public/js/common.js"></script>
		<script src="js/wallet-detail.js"></script>
	</head>

	<body>
		<div class="wrap container">
			<div id="wallet-content" class="wallet-content">
				<script id="wallet-content-tpl" type="text/html">
					<div class="wallet-header">
						<div class="title">
							<div class="icon">
								<a href="index.html"><img class="img-responsive" src="images/arrow_left@2x.png" /></a>
							</div>
							<div class="text">{{type == 0 ? '云币':'云积分'}}</div>
						</div>
						<!--<div class="total-assets-title">{{if type == 0}}总资产 CNY{{/if}}</div>-->
						<div class="total-assets-value">{{type == 0 ? mwInfo.yunB : mwInfo.yunScore}}</div>
						{{if type == 0}}
						<div class="total-assets-trans">≈{{mwInfo.yunB * mwInfo.cloudcoinExchange,5 | toDecimal}} CNY</div>
						{{else if type == 1}}
						<div class="total-assets-trans">≈{{mwInfo.yunScore * mwInfo.integralExchange,5 | toDecimal}} CNY</div>
						{{/if}}
						{{if type == 0}}
						<div class="total-assets-btn">
							<a href="javascript:;" onclick="rechargeAndWithdraw()">充值/提现</a>
						</div>
						{{/if}}
					</div>
					<div class="wallet-list-box">
						<div class="list-title">交易记录</div>
						{{if rs.length == 0}}
						<div class="weui-loadmore weui-loadmore_line">
							<span class="weui-loadmore__tips">暂无数据</span>
						</div>
						{{else}}
						<ul style="overflow: hidden;">
							{{each rs rs i}}
							<li>
								<a href="javascript:;">
									<div class="icon"><img class="img-responsive" src="{{rs.type==1?'images/wk_income@2x.png':'images/wk_pay@2x.png'}}" /></div>
									<div class="detail">
										<div class="row1 over-h">
											<div class="left ellipsis-1">{{i | formatLogType}}</div>
											<div class="right ellipsis-1">{{rs.type==0?'-':''}}{{rs.price}}</div>
										</div>
										<div class="row2 over-h">
											<div class="left">{{rs.operateTime|getLocalTime}}</div>
											<div class="right">{{i | formatLogStatus}}</div>
										</div>
									</div>
								</a>
							</li>
							{{/each}}
						</ul>
						{{/if}}
					</div>
					<div class="wallet-bottom">
						<a href="trans-accounts.html?type={{type}}" class="zz-btn">转账</a>
						<a href="collect-money.html?type={{type}}" class="sk-btn">收款</a>
					</div>
				</script>
			</div>
		</div>
	</body>
	<script src="https://cdn.bootcss.com/jquery-weui/1.2.1/js/jquery-weui.min.js"></script>

</html>